package com.tudouji.project.product.domain;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

/**
 * *产品信息
 * @author xxl
 *
 */
@Data
public class Products implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private Long departId;//部门id
	
	private Integer type;//产品类型 :1原料,2成品,3次品,4-辅料

	private String productId;//产品id
	
	private String productName;//产品名称
	
	private String speId;//规格id
	
	private String speName;//规格名称 
	
	private BigDecimal concession;//优惠让利点 
	
	private BigDecimal price;//单价
	
	private Integer currency;//币种1-人民币,2-美元
	
	private Integer valuation;//计价方式:1-按件,2-按吨
	
	private Long orgId;//公司id
	
	private String unit;
	
	private String[] brandids;

	private Integer[] stats;

	private String productflag; //商品类型
	
	private String[] proflags;
	
	  //@liusj
	private  Integer flag;
	private  String guid; //guid
	private  String remark; //商品说明
	private  Integer status;// 状态
	private String operatorid;//操作
	
	private String strguid;
	
	private String[] categoryids;
	
	private String pickingid;
	


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((productId == null) ? 0 : productId.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Products other = (Products) obj;
		if (productId == null) {
			if (other.productId != null)
				return false;
		} else if (!productId.equals(other.productId))
			return false;
		return true;
	}

}
